package llk.controllers
{
	import com.controllers.Controller;
	import com.views.View;
	
	import llk.views.LlkView;

	public class LlkController extends Controller
	{
		private var _logic:LLKLogicController;
		private var _random:LLKRandomController
		private var _gameLayer:LlkGameLayerController;
		
		private var _llkView:LlkView
		public function LlkController()
		{
			super();
		}
		override public function initController(target:View):void{
			super.initController(target);
			_llkView = target as LlkView;
		}
		
		public function get logic( ):LLKLogicController {
			if( !_logic )_logic = new LLKLogicController( _llkView as LlkView);
			return _logic;
		}
		
		public function get randomCtrl():LLKRandomController {
			if(!_random)_random = new LLKRandomController(_llkView as LlkView);
			return _random;
		}
		
		public function get gameLayerCtrl():LlkGameLayerController {
//			if(!_gameLayer)_gameLayer = new LlkGameLayerController(_llkView as LlkView);
//			return _gameLayer;
			return null;
		}
		
		
		
	}
}